package com.standard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.standard.model.ProductOrderDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProductOrderMapper extends BaseMapper<ProductOrderDO> {

    @Select("select * from product_order o left join product_order_item i on o.id=i.product_order_id where o.id=1473188945716924418")
    List<Object> selectProduct();

    List<ProductOrderDO> selectMax(@Param("userId") Long userId, @Param("pageSize") Long pageSize, @Param("offset") Long offset);
}
